package springboard.auth.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {

    public static final short STATUS_NORMAL = 0;
    public static final short STATUS_DISABLED = -1;

    public static final short PHONE_STATUS_UNVERIFIED = 0;
    public static final short PHONE_STATUS_VERIFIED = 1;
    public static final short PHONE_STATUS_DISABLED = -1;

    public static final short MAIL_STATUS_UNVERIFIED = 0;
    public static final short MAIL_STATUS_VERIFIED = 1;
    public static final short MAIL_STATUS_DISABLED = -1;

    @ApiModelProperty("用户ID")
    @TableId
    Long id;

    @ApiModelProperty("状态")
    Short status;

    @ApiModelProperty("昵称")
    String nickname;

    @ApiModelProperty("头像")
    String avatar;

    @ApiModelProperty("心情")
    String slogan;

    @ApiModelProperty("姓名")
    String name;

    @ApiModelProperty("性别")
    Short gender;

    @ApiModelProperty("生日")
    Date birthday;

    @ApiModelProperty("手机")
    String phone;

    @ApiModelProperty("手机认证状态")
    Short phoneStatus;

    @ApiModelProperty("邮箱")
    String mail;

    @ApiModelProperty("邮箱认证状态")
    Short mailStatus;

    @ApiModelProperty("创建时间")
    Date createdTime;

    @ApiModelProperty("更新时间")
    Date updatedTime;

}
